This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkgs(grass): alphabetical reordering of dependencies and adding packa…
…ge tests Nixpkgs PR: NixOS/nixpkgs#241164
- Loading branch information
Showing
2 changed files
with
93 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ runCommand, grass }: | ||
|
||
let | ||
inherit (grass) pname version; | ||
|
||
in | ||
runCommand "${pname}-tests" { meta.timeout = 60; } | ||
'' | ||
HOME=$(mktemp -d) | ||
${grass}/bin/grass --tmp-location EPSG:3857 --exec g.version \ | ||
| grep 'GRASS ${version}' | ||
${grass}/bin/grass --tmp-location EPSG:3857 --exec g.mapset -l \ | ||
| grep 'PERMANENT' | ||
touch $out | ||
'' |