mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-07 12:44:20 +00:00
Merge pull request #221175 from wegank/tamarin-prover-glibc
tamarin-prover: only use glibcLocales on linux
This commit is contained in:
commit
34f0221bc5
@ -1,4 +1,4 @@
|
|||||||
{ haskellPackages, mkDerivation, fetchFromGitHub, lib
|
{ haskellPackages, mkDerivation, fetchFromGitHub, lib, stdenv
|
||||||
# the following are non-haskell dependencies
|
# the following are non-haskell dependencies
|
||||||
, makeWrapper, which, maude, graphviz, glibcLocales
|
, makeWrapper, which, maude, graphviz, glibcLocales
|
||||||
}:
|
}:
|
||||||
@ -76,7 +76,9 @@ mkDerivation (common "tamarin-prover" src // {
|
|||||||
executableToolDepends = [ makeWrapper which maude graphviz ];
|
executableToolDepends = [ makeWrapper which maude graphviz ];
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/tamarin-prover \
|
wrapProgram $out/bin/tamarin-prover \
|
||||||
|
'' + lib.optionalString stdenv.isLinux ''
|
||||||
--set LOCALE_ARCHIVE "${glibcLocales}/lib/locale/locale-archive" \
|
--set LOCALE_ARCHIVE "${glibcLocales}/lib/locale/locale-archive" \
|
||||||
|
'' + ''
|
||||||
--prefix PATH : ${lib.makeBinPath [ which maude graphviz ]}
|
--prefix PATH : ${lib.makeBinPath [ which maude graphviz ]}
|
||||||
# so that the package can be used as a vim plugin to install syntax coloration
|
# so that the package can be used as a vim plugin to install syntax coloration
|
||||||
install -Dt $out/share/vim-plugins/tamarin-prover/syntax/ etc/syntax/spthy.vim
|
install -Dt $out/share/vim-plugins/tamarin-prover/syntax/ etc/syntax/spthy.vim
|
||||||
|
Loading…
Reference in New Issue
Block a user