New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
veracrypt: init at 1.19 #24424
veracrypt: init at 1.19 #24424
Conversation
cd Vera*/src | ||
''; | ||
|
||
buildInputs = [ pkgconfig fuse devicemapper wxGTK30 nasm makeself ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pkgconfig goes into nativeBuildInputs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
homepage = https://veracrypt.codeplex.com/; | ||
license = "VeraCrypt License"; | ||
maintainers = null; # TO DEFINE | ||
platforms = with stdenv.lib.platforms; linux; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be platforms = platforms.linux since it is only one platform
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
2b1b7df
to
c21b1f2
Compare
It seems the first change broke the build: https://travis-ci.org/NixOS/nixpkgs/jobs/216476198#L1575 @ndowens Any idea of why it happened? |
description = "Free Open-Source filesystem on-the-fly encryption"; | ||
homepage = https://veracrypt.codeplex.com/; | ||
license = "VeraCrypt License"; | ||
maintainers = null; # TO DEFINE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to maintains this package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does it implies exactly?
Updating the package when there is an update upstream?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It implies that you have some vested interest in the package; I don't think there's an implication of a certain level of commitment, really, but you can expect to be pinged if there's an issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I understand!
So I shall add myself in lib/maintainers.nix
and update the field in the package, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That'd be great :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
The change didn't break it. Travis seems to be broken again. The difference between the buildinputs is that native is is used for building the pkg vs buildinputs is for what the pkg uses for runtime |
@ndowens I don't believe that the names perfectly describe the semantics, but thanks for the explanation I'll keep that in mind :) |
cd Vera*/src | ||
''; | ||
|
||
nativeBuildInput = [ pkgconfig ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: should be nativeBuildInputs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh indeed! I fixed it
The travis error is legit. |
b247e31
to
8846f93
Compare
Added a few things for you to consider. |
Thanks I learned a few tips ^_^ |
- Conditionally add wxGTK30 to inputs to avoid eval'ing it regardless of wxGUI - Patch full path to exe into desktop file - Move some inputs to native - Do not write intermediate tar file on unpack
Thank you |
Thank you for helping me ^_^ Do you now if/when the package will be available in a release channel? |
It's already in the unstable channel, but hasn't been picked to the release branch. |
OK! |
You can submit a PR against the release branch, containing cherry-picked patches (please use |
Motivation for this change
TrueCrypt has been discontinued for several years.
This PR adds a package for VeraCrypt, a maintained fork of TrueCrypt.
I used
truecrypt
package as a start, and tried to create a nice package; but I'm a beginner so I guess not everything is perfect.I would be happy to have feedback and advices!
I tested this package on NixOS.
I was able to successfully do the following steps:
I let the
maintainers
field empty.I don't know if I should add myself, or @viric (the
truecrypt
package maintainer), or someone else.Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)