idrisPackages.build-builtin-package: Include version in name

This commit is contained in:
Thomas Tuegel 2017-08-22 19:48:56 -05:00
parent c3acd48763
commit ca381067e7
No known key found for this signature in database
GPG key ID: 22CBF5249D4B4D59

View file

@ -1,8 +1,12 @@
# Build one of the packages that come with idris
# name: The name of the package
# deps: The dependencies of the package
{ idris, build-idris-package, lib }: name: deps: build-idris-package {
inherit name;
{ idris, build-idris-package, lib }: name: deps:
let
inherit (builtins.parseDrvName idris.name) version;
in
build-idris-package {
name = "${name}-${version}";
propagatedBuildInputs = deps;